import req from '../fetch/index.js'

const config = {
  // 获取用户头像
  returnUser: {
        url: '/pc/user/returnUser',
        method:'post'
    },
    returnMenuByRole: {
        url: '/pc/menu/returnMenuByRole',
        method:'post'
    }
  
}

const request = function (funcName, requestParam) {
  return req(config[funcName].url, config[funcName].method, requestParam, {}, config[funcName].fileConfig)
}
export default request
